<template>
  <div class="header-bar">
    <sider-trigger icon="md-menu" class="pullLeft cCCC marginR10" ></sider-trigger>
    <div class="pullLeft">
      <span class="f_18 f_bold c333" style="letter-spacing:3px;">{{towR()}}</span>
    </div>
    
    <!-- <custom-bread-crumb show-icon style="margin-left: 30px;" :list="breadCrumbList"></custom-bread-crumb> -->
    <div class="custom-content-con"> 
      <slot></slot>
    </div>
  </div>
</template>
<script>
import siderTrigger from './sider-trigger'
import customBreadCrumb from './custom-bread-crumb'
import './header-bar.less'
export default {
  name: 'HeaderBar',
  components: {
    siderTrigger,
    customBreadCrumb
  },
  
  computed: {
    breadCrumbList () {
      return this.$store.state.app.breadCrumbList
    }
  },
  methods: {
    towR(){
      let{
        $store:{
          state:{
            F_cat:{
              bigTitle
            }
          }
        }
      }=this;
      let out='';
      
      if($app.judgeData(bigTitle)){
        out=bigTitle;
      }else if($app.judgeData($app.getSession('bigTitle'))){
        out=$app.getSession('bigTitle');
      }else{
        out='知识产权智能管理系统';
      }
      return out;
      
    }
  }
}
</script>
